import 'package:flutter_ncsjqz_getx/generated/json/base/json_field.dart';
import 'package:flutter_ncsjqz_getx/generated/json/commodity_list_entity.g.dart';


@JsonSerializable()
class CommodityListEntity {

	CommodityListEntity();

	factory CommodityListEntity.fromJson(Map<String, dynamic> json) => $CommodityListEntityFromJson(json);

	Map<String, dynamic> toJson() => $CommodityListEntityToJson(this);

	String? msg;
	int? code;
	CommodityListData? data;
}

@JsonSerializable()
class CommodityListData {

	CommodityListData();

	factory CommodityListData.fromJson(Map<String, dynamic> json) => $CommodityListDataFromJson(json);

	Map<String, dynamic> toJson() => $CommodityListDataToJson(this);

	List<CommodityListDataContent>? content;
	CommodityListDataPageable? pageable;
	int? totalElements;
	bool? last;
	int? totalPages;
	bool? first;
	CommodityListDataSort? sort;
	int? numberOfElements;
	int? size;
	int? number;
	bool? empty;
}

@JsonSerializable()
class CommodityListDataContent {

	CommodityListDataContent();

	factory CommodityListDataContent.fromJson(Map<String, dynamic> json) => $CommodityListDataContentFromJson(json);

	Map<String, dynamic> toJson() => $CommodityListDataContentToJson(this);

	int? commodityId;
	int? shopId;
	String? acreage;
	String? commodityName;
	String? masterPic;
	int? price;
	double? distance;
	int? originalPrice;
	dynamic? shopName;
	String? brief;
	int? status;
	int? categoryId;
	int? parentCategoryId;
	int? soldNum;
	int? totalStocks;
	String? content;
	String? deliveryAddress;
	dynamic? shopPic;
	dynamic? skuList;
	dynamic? masterUrls;
	dynamic? slaveUrls;
	dynamic? props;
}

@JsonSerializable()
class CommodityListDataPageable {

	CommodityListDataPageable();

	factory CommodityListDataPageable.fromJson(Map<String, dynamic> json) => $CommodityListDataPageableFromJson(json);

	Map<String, dynamic> toJson() => $CommodityListDataPageableToJson(this);

	CommodityListDataPageableSort? sort;
	int? pageNumber;
	int? pageSize;
	int? offset;
	bool? paged;
	bool? unpaged;
}

@JsonSerializable()
class CommodityListDataPageableSort {

	CommodityListDataPageableSort();

	factory CommodityListDataPageableSort.fromJson(Map<String, dynamic> json) => $CommodityListDataPageableSortFromJson(json);

	Map<String, dynamic> toJson() => $CommodityListDataPageableSortToJson(this);

	bool? sorted;
	bool? unsorted;
	bool? empty;
}

@JsonSerializable()
class CommodityListDataSort {

	CommodityListDataSort();

	factory CommodityListDataSort.fromJson(Map<String, dynamic> json) => $CommodityListDataSortFromJson(json);

	Map<String, dynamic> toJson() => $CommodityListDataSortToJson(this);

	bool? sorted;
	bool? unsorted;
	bool? empty;
}
